﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<GestionIncidencias.Models.Incidente>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	UPC - PuntoNet
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Crear Incidente</h2>
    <% Html.EnableClientValidation(); %>

    <% using (Html.BeginForm()) {%>
        <%: Html.ValidationSummary(true) %>

        <fieldset>
            <legend>Campos</legend>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Codigo) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Codigo) %>
                <%: Html.ValidationMessageFor(model => model.Codigo) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Cliente) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Cliente) %>
                <%: Html.ValidationMessageFor(model => model.Cliente) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Servicio) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Servicio) %>
                <%: Html.ValidationMessageFor(model => model.Servicio) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Tipo) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Tipo) %>
                <%: Html.ValidationMessageFor(model => model.Tipo) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Estado) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Estado) %>
                <%: Html.ValidationMessageFor(model => model.Estado) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Tecnico) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Tecnico) %>
                <%: Html.ValidationMessageFor(model => model.Tecnico) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.FechaTicket) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.FechaTicket) %>
                <%: Html.ValidationMessageFor(model => model.FechaTicket) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.FechaCierre) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.FechaCierre) %>
                <%: Html.ValidationMessageFor(model => model.FechaCierre) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Solucion) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Solucion) %>
                <%: Html.ValidationMessageFor(model => model.Solucion) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Descripcion) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Descripcion) %>
                <%: Html.ValidationMessageFor(model => model.Descripcion) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Evaluacion) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Evaluacion) %>
                <%: Html.ValidationMessageFor(model => model.Evaluacion) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.ComentarioSolucion) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.ComentarioSolucion) %>
                <%: Html.ValidationMessageFor(model => model.ComentarioSolucion) %>
            </div>
            
            <p>
                <input type="submit" value="Grabar" />
            </p>
        </fieldset>

    <% } %>

    <div>
        <%: Html.ActionLink("Regresar a la Lista", "Index") %>
    </div>

</asp:Content>

